package com.cskaoyan.mapper;

import com.cskaoyan.vo.Account;

import java.util.List;

/**
 * 创建日期: 2021/11/29 14:34
 *
 * @author ciggar
 */
public interface AccountMapper {

    // 查询
    Account selectAccountById(Integer id);

    List<Account> selectAccountByRole(String role);

    Account[] selectAccountByRoleReturnArray(String role);


    // 增加
    int insertAccount(Account account);

    // 修改
    int updateAccountNameById(Account account);

    // 删除
    int deleteAccoutListByName(String name);

    List<String> selectNameList();

}
